﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>创建</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../Layui/css/layui.css" media="all">
</head>
<body>
    <form class="layui-form" action="">
        <div class="layui-form-item" style="margin-top:10px;">
            <label class="layui-form-label">课程名称</label>
            <div class="layui-input-inline">
                <input type="text" name="CourseName" required lay-verify="required" placeholder="课程名称" autocomplete="off" class="layui-input">
            </div>
            <label class="layui-form-label">学生人数</label>
            <div class="layui-input-inline">
                <input type="text" name="CustTel" required lay-verify="required" placeholder="请输入学生人数" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">是否约课</label>
            <div class="layui-input-inline">
                <input type="checkbox" name="IsTentative" lay-skin="switch" lay-text="开启|关闭">
            </div>
        
            <label class="layui-form-label">试听</label>
            <div class="layui-input-block">
                <input type="checkbox" name="IsTentative" lay-skin="switch" lay-text="开启|关闭">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">扣课时</label>
            <div class="layui-input-inline">
                <input type="text" name="Dperiod" required lay-verify="required" placeholder="请输入扣课时" autocomplete="off" class="layui-input">
            </div>

        </div>
        <div class="layui-form-item">
           
            <label class="layui-form-label">起始年龄</label>
            <div class="layui-input-inline">
                <input type="text" name="CustTel" required lay-verify="required" placeholder="请输入岁数" autocomplete="off" class="layui-input">
            </div>
            <div class="layui-input-inline">
                <input type="text" name="CustTel" required lay-verify="required" placeholder="请输入月数" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">结束年龄</label>
            <div class="layui-input-inline">
                <input type="text" name="CustTel" required lay-verify="required" placeholder="请输入岁数" autocomplete="off" class="layui-input">
            </div>
            <div class="layui-input-inline">
                <input type="text" name="CustTel" required lay-verify="required" placeholder="请输入月数" autocomplete="off" class="layui-input">
            </div>
        </div>
        
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea name="CustRemark" placeholder="请输入内容" class="layui-textarea"></textarea>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
    <script src="../Layui/layui.js"></script>

    <script>
        layui.config({
            base: '../Layui/' //静态资源所在路径
        }).extend({
            index: 'lib/index' //主入口模块
        }).use('index');
    </script>
    <script>
        //Demo
        layui.use('form', function () {
            var form = layui.form;

            //监听提交
            form.on('submit(formDemo)', function (data) {
                layer.msg(JSON.stringify(data.field));
                return false;
            });
        });
    </script>
    <script>
        layui.use('laydate', function () {
            var laydate = layui.laydate;

            //执行一个laydate实例
            laydate.render({
                elem: '#BirdDate' //指定元素
            });

          
        });
    </script>
</body>
</html>